{extend name='common/_container'}
{block name="content"}
<div class="ibox float-e-margins">
<input type="hidden" name='m_id' id='m_id' value="{$info.m_id}" />
	<div class="ibox-content layui-form">
		<div class="form-horizontal" id="CodeInfoForm">
			<div class="row">
				<div class="col-sm-12">
				<!-- form start -->
					<div class="form-group">
						<label class="col-sm-2 control-label">用户名：</label>
						<div class="col-sm-9">
							<input type="text" id="username" value="{$info.username}" name="username" class="form-control" placeholder="请输入用户名">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">性别：</label>
						<div class="col-sm-9">
							<?php if(!isset($info['sex'])){ $info['sex'] = 2; }; ?>
							<input name="sex" value="1" type="radio" {if condition="$info.sex eq '1'"}checked{/if} title="男">
							<input name="sex" value="2" type="radio" {if condition="$info.sex eq '2'"}checked{/if} title="女">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">电话：</label>
						<div class="col-sm-9">
							<input type="text" id="mobil" value="" name="mobil" class="form-control" placeholder="请输入电话">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">邮箱：</label>
						<div class="col-sm-9">
							<input type="text" id="email" value="{$info.email}" name="email" class="form-control" placeholder="请输入邮箱">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">头像：</label>
						<div class="col-sm-6">
							<input type="text" id="headimgurl" value="{$info.headimgurl}" name="headimgurl" {:hook('view_big_pic',['type'=>2])} class="form-control" placeholder="请输入头像">
						</div>
						<div class="col-sm-2" style="position:relative; right:30px;">
							<span id="headimgurl_upload"></span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">状态：</label>
						<div class="col-sm-9">
							<?php if(!isset($info['status'])){ $info['status'] = 10; }; ?>
							<input name="status" value="10" type="radio" {if condition="$info.status eq '10'"}checked{/if} title="正常">
							<input name="status" value="0" type="radio" {if condition="$info.status eq '0'"}checked{/if} title="禁用">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">姓名：</label>
						<div class="col-sm-9">
							<input type="text" id="relname" value="{$info.relname}" name="relname" class="form-control" placeholder="请输入姓名">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">积分：</label>
						<div class="col-sm-9">
							<input type="text" id="amount" value="{$info.amount}" name="amount" class="form-control" placeholder="请输入积分">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">省市区：</label>
						<div id="distpicker5">
							<div class="col-sm-3">
							
								<select lay-ignore id="province" class="form-control" data-province=""></select>
							</div>
							<div class="col-sm-3">
							
								<select lay-ignore id="city" class="form-control" data-city=""></select>
							</div>
							<div class="col-sm-3">
								<select lay-ignore id="district" class="form-control" data-district=""></select>
							</div>
						</div>
					</div>
					<script src="__PUBLIC__/static/js/plugins/shengshiqu/distpicker.data.js"></script>
					<script src="__PUBLIC__/static/js/plugins/shengshiqu/distpicker.js"></script>
					<script src="__PUBLIC__/static/js/plugins/shengshiqu/main.js"></script>
					<div class="form-group">
						<label class="col-sm-2 control-label">色值：</label>
						<div id="mycp">
							<div class="col-sm-8">
								<input type="text" id="color" value="{$info.color}" name="color" class="form-control" placeholder="请输入色值">
							</div>
							<div class="col-sm-1">
								<span style="border:none; margin-left:-30px;  padding:0;" class="input-group-addon col-sm-2"><i style="width:32px; height:32px;"></i></span>
							</div>
						</div>
					</div>
					<link href="__PUBLIC__/static/js/plugins/colorpicker/bootstrap-colorpicker.css" rel="stylesheet">
					<script src="__PUBLIC__/static/js/plugins/colorpicker/bootstrap-colorpicker.js"></script>
					<script type="text/javascript">
					$(function () {
						$('#mycp').colorpicker();
						{if condition='$info.color eq ""'}
							$('#color').val('');
						{/if}
					});
					</script>
					<div class="form-group">
						<label class="col-sm-2 control-label">坐标：</label>
						<div class="col-sm-9">
							<div class="input-group" id="id_address_input">
							<textarea id="longitude" name="longitude"  class="form-control" placeholder="请输入坐标">{$info.longitude}</textarea>
								<span class="input-group-addon"><span class="glyphicon glyphicon-map-marker"></span></span>
							</div>
						</div>
					</div>
					<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=ed1fafa0307bb4991da41f54d8a88b46"></script>
					<script src="__PUBLIC__/static/js/plugins/map/bootstrap.AMapPositionPicker.js"></script>
					<script type="text/javascript">
					$(function () {
						var p = $("#id_address_input").AMapPositionPicker();
					});
					</script>
				<!-- form end -->
				</div>
			</div>
			<div class="hr-line-dashed"></div>
			<div class="row btn-group-m-t">
				<div class="col-sm-9 col-sm-offset-1">
					<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.add()" id="ensure">
						<i class="fa fa-check"></i>&nbsp;确认提交
					</button>
					<button type="button" class="btn btn-danger" onclick="CodeInfoDlg.close()" id="cancel">
						<i class="fa fa-eraser"></i>&nbsp;取消
					</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__PUBLIC__/static/js/admin/Member.js?t=<?php echo rand(1000,9999)?>" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/upload.js" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/plugins/layui/layui.js?t=1498856285724" charset="utf-8"></script>
<script>
layui.config({dir: '__PUBLIC__/static/js/plugins/layui/'});
	layui.use(['layer', 'form'], function () {
	window.layer = layui.layer;
	window.form = layui.form();
});
layui.use('element', function(){
	var element = layui.element();
	element.on('tab(test)', function(elem){
	});
});
uploader('headimgurl_upload','headimgurl','image',false,'','{:url("admin/Upload/uploadImages")}');
</script>


{/block}
